package com.vincent.template.repository;

import com.vincent.template.commons.base.BaseJpaRepository;
import com.vincent.template.domain.SysBindUserGroupUserPo;

import java.util.Collection;
import java.util.List;

/**
 * @author Vincent Wang
 * @date 2020/12/30 11:22
 */
public interface SysBindUserGroupUserRepository extends BaseJpaRepository<SysBindUserGroupUserPo, Long> {
    List<SysBindUserGroupUserPo> findByUserId(String userId);
    List<SysBindUserGroupUserPo> findByUserGroupId(Long userGroupId);
    int deleteByUserId(String userId);
    List<SysBindUserGroupUserPo> findByUserGroupIdAndUserIdIn(Long userGroupId, Collection<String> userIds);
}
